From: Florian Müllner Date: Wed, 10 Jul 2019 20:52:09 +0000 (+0200) Subject: appDisplay: Fix logic error X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~845^2^2~53 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=55c717c2dc04e74207bc8aa80d8650ff6d9a6ac9;p=gnome-shell.git appDisplay: Fix logic error Commit f6b4b96737d3 accidentally swapped the conditions here from !includes() to includes(). https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/621 --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 78128256d..ff771d302 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -1713,7 +1713,7 @@ var AppIconMenu = class AppIconMenu extends PopupMenu.PopupMenu { let appInfo = this._source.app.get_app_info(); let actions = appInfo.list_actions(); if (this._source.app.can_open_new_window() && - actions.includes('new-window')) { + !actions.includes('new-window')) { this._newWindowMenuItem = this._appendMenuItem(_("New Window")); this._newWindowMenuItem.connect('activate', () => { if (this._source.app.state == Shell.AppState.STOPPED) @@ -1727,7 +1727,7 @@ var AppIconMenu = class AppIconMenu extends PopupMenu.PopupMenu { if (discreteGpuAvailable && this._source.app.state == Shell.AppState.STOPPED && - actions.includes('activate-discrete-gpu')) { + !actions.includes('activate-discrete-gpu')) { this._onDiscreteGpuMenuItem = this._appendMenuItem(_("Launch using Dedicated Graphics Card")); this._onDiscreteGpuMenuItem.connect('activate', () => { if (this._source.app.state == Shell.AppState.STOPPED)